<?php
if (secure($_GET['f'])) 
{

$fid = secure($_GET['f']);

$findstuff = mysql_query("SELECT * FROM `forum_posts` WHERE `forumid` = '$fid'");

echo '<a href="index.php?action=forum&f=' .$fid. '&sa=newtopic">New Topic<br /><br /></a>';

while ($posts = mysql_fetch_array($findstuff)) {

$post = "$posts[title]";
$id = "$posts[postid]";
$author = "$posts[author]";

echo "<a href='index.php?action=forum&sa=viewpost&t=$id'>$post</a> - $author<br />";

}
} 

?>